/**
 * Created by 王正喜 on 2015/4/11.
 */
function getid(id){
    return document.getEementById(id);
}
getid('serch').onclick = function(){

};
getid('delete').onclick = function(){
    console.log(this.parenNode.parentNode);
    deleteRow(this.parentNode)
}

function table(){
    for(var i=0;i<100;i++){
    var tr;
    var td1;
    var td2;
    var td3;
    td3.innerHTML = "<span class='delete'>[删除]</span>";
    td3.childNodes[0].onclick = function(){
        var id =this.parentNode.parentNode.childNodes[0].innerHTML;
        ajax("post","del",{id:id},function(data){

        });
    }

    }
}